﻿<%@ Page Language="VB" AutoEventWireup="false" CodeFile="Split.aspx.vb" Inherits="ST_ST0021" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<SCRIPT Language="JavaScript">
function MM_displayStatusMsg(msgStr) {
status=msgStr;
document.MM_returnValue = true;
}
function click() {
if (event.button==2) {
    alert('Right button disable')
}
}
document.onmousedown=click
</SCRIPT>
<head runat="server">
    <title></title>
    <script type="text/javascript">
    <!--
        var w;
        function funSplitClick()
        {
            if (window.parent.frmSet.cols.split(',')[0] == '220')
            {
                document.getElementById("imgSplit").src = "../../images/mopen.gif";
                document.getElementById("imgSplit").alt = "Open menu";
                w = 220;
                funClose();
            }
            else
            {
                document.getElementById("imgSplit").src = "../../images/mclose.gif";
                document.getElementById("imgSplit").alt = "Close menu";
               
                w = 0;
                funOpen();
            }
        }
        
        function funOpen()
        {
            document.body.bgColor = '#f1f1f1';
            w = w + 115;
            if (w > 220) w = 220;
            window.parent.frmSet.cols = w.toString() + ",10,*"
            
            if (w < 220)
                window.setTimeout("funOpen()", 5);
        }
        
        function funClose()
        {
            w = w - 115;
            if (w <= 0) 
            {
                w = 0;
                document.body.bgColor = '#547C8C';
            }
            window.parent.frmSet.cols = w.toString() + ",10,*"
            
            if (w > 0)
                window.setTimeout("funClose()", 5);
        }
        
        function funSplitClick_WorkFlow()
        {
            if (window.parent.frmSet.cols.split(',')[1] == '220')
            {
                imgSplit_WorkFlow.src = "../../images/mopen_r1.gif";
                imgSplit_WorkFlow.alt = "Open WorkFlow menu";
                w = 220;
                funWorkFlowClose();
            }
            else
            {
                imgSplit_WorkFlow.src = "../images/mclose_r1.gif";
                imgSplit_WorkFlow.alt = "Close WorkFlow menu";
                imgSplit.src = "../images/mopen.gif";
                imgSplit.alt = "Open menu";
                w = 0;
                funWorkFlowOpen();
            }
        }
        
        function funWorkFlowOpen()
        {
            document.body.bgColor = '#f1f1f1';
            w = w + 115;
            if (w > 220) w = 220;
            window.parent.frmSet.cols = '0,' + w.toString() + ",10,*"
            
            if (w < 220)
                window.setTimeout("funWorkFlowOpen()", 5);
        }
        
        function funWorkFlowClose()
        {
            w = w - 115;
            if (w <= 0)
            {
                w = 0;
                document.body.bgColor = '#CFDDE3';
            }
            window.parent.frmSet.cols = '0,' + w.toString() + ",10,*"
            
            if (w > 0)
                window.setTimeout("funWorkFlowClose()", 5);
        }
    -->
    </script>
</head>
<body style=" background-color:Red ;margin-top:130px; margin-left:0;background: url(../../images/title_bg32.gif); BACKGROUND-REPEAT: no-repeat" >
    <form id="form1" runat="server">
    <img id="imgSplit" src="../../images/mclose.gif" style="cursor: hand;" 
        alt="Open menu" onclick="funSplitClick();" /><br /><br />
    <img id="imgSplit_WorkFlow" src="../../images/mopen_r.gif" style="display:none; cursor: hand" alt="Open WorkFlow menu" onclick="funSplitClick_WorkFlow();" />
   
    </form>
</body>
</html>

